package com.example.wallet.bean

import androidx.room.ColumnInfo
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.alibaba.fastjson.annotation.JSONField

@Entity(tableName = "user_info_wrapper")
data class UserInfoWrapper (

    @PrimaryKey
    @ColumnInfo(name = "token", defaultValue = "")
    val token:String,

    @JSONField(name = "userInfo")
    @Embedded
    var userInfo:UserInfo
)